import { createWebHashHistory, createRouter } from "vue-router";
const routes = [
    {
        path: '/',
        name: 'home',
        component: () => import('../components/home.vue'),
        children: [
            {
                path: 'todayData',
                component:()=>import('../components/page/bigPan/todayData.vue')
            },
            {
                path: 'file-list',
                component: () => import('../components/page/drag-list.vue')
            }, {
                path: 'file-window',
                component:()=>import('../components/page/drag-window.vue')
            }, {
                path: 'upload',
                component:()=>import('../components/page/file-upload.vue')
            }, {
                path: 'edit',
                component:()=>import('../components/page/file-edit.vue')
            },{
                path: 'icon',
                component:()=>import('../components/page/icon.vue')
            },
            {
                path: 'markdown',
                component:()=>import('../components/page/file-markdown.vue')
            }
            ,
            {
                path: 'menu',
                component:()=>import('../components/page/sys/menu/menu.vue')
            },
            {
                path: 'riZhi',
                component:()=>import('../components/page/sys/riZhi/riZhi.vue')
            },
            {
                path: 'password',
                component:()=>import('../components/page/sys/changePassword/password.vue')
            },
            {
                path: 'account',
                component:()=>import('../components/page/sys/account/account.vue')
            },
            {
                path: 'department',
                component:()=>import('../components/page/sys/dapartment/department.vue')
            },
            {
                path: 'role',
                component:()=>import('../components/page/sys/role/role.vue')
            }
       
        ]
    }

]

export const router = createRouter({
    history: createWebHashHistory(),
    routes: routes
})